﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CorporateGym.DAL;

namespace BLL
{
    public class Shift
    {
        public int WorkerId { get; set; }
        public DateTime StartingHour { get; set; }
        public DateTime EndingHour { get; set; }
        
        public static Shift CreateFromRow(CorporateGymDB.ShiftRow i_Row)
        {
            return new Shift
            {
                WorkerId = i_Row.WorkerId,
                StartingHour = i_Row.StraingHour,
                EndingHour = i_Row.EndTime
            };
        }
    }
}
